// 服务代理 请求头
const serviceUrl = [
  {
    proxy: "/proxy",
    proxyKey: "PROXY_SVR",
    name: "代理服务",
  },
];

/**
 * @param serviceKey key值
 * @returns proxy值
 */
export default function getServiceUrl(serviceKey: string) {
  let url = "";
  serviceUrl.forEach((item) => {
    if (item.proxyKey === serviceKey) {
      url = item.proxy;
    }
  });
  return url;
}
